prepare-root: add allow_noent argument to load_variant
authorAlexander Larsson <alexl@redhat.com>
Mon, 15 Sep 2025 08:04:59 +0000 (10:04 +0200)
committerAlexander Larsson <alexl@redhat.com>
Mon, 15 Sep 2025 08:04:59 +0000 (10:04 +0200)
commitc69bd1dab56b0a744e8d424553264f37b0db8aab
tree86de2c072004babb223ede1d2af1d1c67906f68f
parent9d206892c7339ac9cea438f7cb2c79ace7f3c0b8
prepare-root: add allow_noent argument to load_variant

This is a minor preparation for a later change. Instead of
hand-rolling the G_FILE_ERROR_NOENT error check we add
a new allow_noent option.

Additionally, we move the handling of a no commitmeta being
an error to the caller of load_commit_for_deploy(), because
this check will be slightly more complex in the future.
src/libotcore/otcore-prepare-root.c